﻿using UnityEngine;
using System.Collections;

public class nameCommand : ICommand {

	private bool needResponse;

	public nameCommand() {
		needResponse = false;
	}

	public string getCommand() {
		needResponse = false;
		return "name:" + SystemInfo.deviceName;
	}

	public void respond(string command, string content) {
		if (command.Equals ("name")) {
			needResponse = true;
		}
	}

	public bool needsToRespond() {
		return needResponse;
	}
}
